<?php
	class AdminDthink_Form_ValidateArea
	{
		public function validAreaName($areaName)
		{
			$validator = new Zend_Validate_NotEmpty();
			if($validator->isValid($areaName))
			{
				$validator = new Zend_Validate_StringLength(1, 100);
				if($validator->isValid($areaName))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			else
			{
				return false;
			}
		}
		
		public function validAreaSearch($keyword)
		{
			$validator = new Zend_Validate_NotEmpty();
			if($validator->isValid($keyword))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
	}
